<template>
<div class="announcement">
	<ol>
		<router-link tag='li' :to='"announcement/announContent/" + item.id'
			v-for='(item,index) in data'
			:key='index'
		>
			{{item.post_title}}
		</router-link>
	</ol>
	<router-view></router-view>
</div>
</template>
<script>
import { articleLists } from '../../../config/getData'
export default {
	created(){
		 articleLists().then(res =>{
			this.data = res.data.data
		 })
	},
	data(){
		return{
			data:[]
		}
	}

}
</script>

<style lang="scss" scoped>
@import "../../../assets/css/all.scss";


.announcement {
  @include screen;
  ol {
    li {
      list-style: decimal;
      padding: 0 15px;
      line-height: 45px;
      background-color: white;
      list-style-position: inside;
	  margin-bottom: 1px;
	  text-overflow: ellipsis;
	  white-space: nowrap;
	  overflow: hidden;
    }
  }
}
</style>

